package com.app.web.sys.logistics;

import com.app.utils.base.http.ResultUtil;
import com.app.utils.base.j2se.Convert;
import com.app.utils.spring.properties.Config;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Wang on 2020/3/29.
 */
@RestController
@RequestMapping("/logistics/")
public class LogisticsController {

    /**
     * 返回所有快递公司
     * @return
     */
    @RequestMapping("company")
    public String company(){
        return ResultUtil.success(Convert.objToStr(Config.pp.get("logistics.company")).split(","));
    }
}
